// request 是我们封装的一个网络请求库
import request from '../utils/request';
import qs from 'qs';

export async function query(params) {
	const mock = {
        total: 6,
        current: 1,
        loading: false,
        list: [
          {
            name: '张三',
            age: 23,
            address: '成都',
          },
          {
            name: '李四',
            age: 24,
            address: '杭州',
          },
          {
            name: '王五',
            age: 25,
            address: '上海',
          },{
            name:'李大肥',
            age:26,
            address:'汕头',
          },
          {
            name:'张x三',
            age:28,
            address:'阳江',
          },
          {
            name: '王x五',
            age: 25,
            address: '上海',
          },
        ],

      };
  return mock;
  return request(`/api/users?${qs.stringify(params)}`);
}